home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 5 / Example 5.10 / object.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-06-29  |  531 b   |  30 lines

  1. #ifndef RTS_OBJECT
  2. #define RTS_OBJECT
  3.  
  4. #include <vector>
  5. #include "debug.h"
  6. #include "mesh.h"
  7. #include "intpoint.h"
  8.  
  9. HRESULT LoadObjectResources(IDirect3DDevice9* Device);
  10. void UnloadObjectResources();
  11.  
  12. #define OBJ_TREE 0
  13. #define OBJ_STONE 1
  14.  
  15. class OBJECT{
  16.     friend class TERRAIN;
  17.     public:
  18.         OBJECT();
  19.         OBJECT(int t, INTPOINT mp, D3DXVECTOR3 pos, D3DXVECTOR3 rot, D3DXVECTOR3 sca);
  20.         void Render();
  21.  
  22.     private:
  23.         INTPOINT m_mappos;
  24.         MESHINSTANCE m_meshInstance;
  25.         int m_type;
  26.         BBOX m_BBox;
  27. };
  28.  
  29.  
  30. #endif